.class Lcom/glympse/android/glympse/Glympse$DlgLowBattery;
.super Lcom/glympse/android/glympse/DlgPrompt;
.source "Glympse.java"

# interfaces
.implements Lcom/glympse/android/glympse/DlgShell$DlgShellListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/glympse/android/glympse/Glympse;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x2
    name = "DlgLowBattery"
.end annotation


# instance fields
.field public m_fExitOnCancel:Z

.field final synthetic this$0:Lcom/glympse/android/glympse/Glympse;


# direct methods
.method public constructor <init>(Lcom/glympse/android/glympse/Glympse;Landroid/content/Context;)V
    .locals 1
    .parameter
    .parameter "oContext"

    .prologue
    .line 2073
    iput-object p1, p0, Lcom/glympse/android/glympse/Glympse$DlgLowBattery;->this$0:Lcom/glympse/android/glympse/Glympse;

    .line 2061
    const/4 v0, 0x0

    invoke-direct {p0, p2, v0}, Lcom/glympse/android/glympse/DlgPrompt;-><init>(Landroid/content/Context;Ljava/lang/String;)V

    .line 2056
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/glympse/android/glympse/Glympse$DlgLowBattery;->m_fExitOnCancel:Z

    .line 2062
    const v0, 0x7f020047

    invoke-virtual {p0, v0}, Lcom/glympse/android/glympse/Glympse$DlgLowBattery;->SetTitleIcon(I)V

    .line 2063
    const v0, 0x7f0a009a

    invoke-virtual {p0, v0}, Lcom/glympse/android/glympse/Glympse$DlgLowBattery;->SetTitleText(I)V

    .line 2064
    const v0, 0x7f0a009b

    invoke-virtual {p0, v0}, Lcom/glympse/android/glympse/Glympse$DlgLowBattery;->SetPrompt(I)V

    .line 2067
    const v0, 0x7f0a009c

    invoke-virtual {p0, v0}, Lcom/glympse/android/glympse/Glympse$DlgLowBattery;->SetOkText(I)V

    .line 2068
    const v0, 0x7f0a0086

    invoke-virtual {p0, v0}, Lcom/glympse/android/glympse/Glympse$DlgLowBattery;->SetCancelText(I)V

    .line 2069
    invoke-virtual {p0}, Lcom/glympse/android/glympse/Glympse$DlgLowBattery;->GetOkButton()Landroid/widget/Button;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Button;->requestFocus()Z

    .line 2072
    invoke-virtual {p0, p0}, Lcom/glympse/android/glympse/Glympse$DlgLowBattery;->SetDlgShellListener(Lcom/glympse/android/glympse/DlgShell$DlgShellListener;)V

    return-void
.end method


# virtual methods
.method public OnCancel(Lcom/glympse/android/glympse/DlgShell;)V
    .locals 2
    .parameter "oDlgShell"

    .prologue
    .line 2090
    iget-object v0, p0, Lcom/glympse/android/glympse/Glympse$DlgLowBattery;->this$0:Lcom/glympse/android/glympse/Glympse;

    const/4 v1, 0x0

    invoke-static {v0, v1}, Lcom/glympse/android/glympse/Glympse;->access$0(Lcom/glympse/android/glympse/Glympse;Lcom/glympse/android/glympse/Glympse$DlgLowBattery;)V

    .line 2091
    iget-boolean v0, p0, Lcom/glympse/android/glympse/Glympse$DlgLowBattery;->m_fExitOnCancel:Z

    if-eqz v0, :cond_0

    .line 2093
    iget-object v0, p0, Lcom/glympse/android/glympse/Glympse$DlgLowBattery;->this$0:Lcom/glympse/android/glympse/Glympse;

    invoke-virtual {v0}, Lcom/glympse/android/glympse/Glympse;->StartExit()V

    .line 2095
    :cond_0
    return-void
.end method

.method public OnDismissed(Lcom/glympse/android/glympse/DlgShell;Z)V
    .locals 0
    .parameter "oDlgShell"
    .parameter "fOk"

    .prologue
    .line 2100
    return-void
.end method

.method public OnOk(Lcom/glympse/android/glympse/DlgShell;)V
    .locals 2
    .parameter "oDlgShell"

    .prologue
    .line 2079
    iget-object v0, p0, Lcom/glympse/android/glympse/Glympse$DlgLowBattery;->this$0:Lcom/glympse/android/glympse/Glympse;

    const/4 v1, 0x0

    invoke-static {v0, v1}, Lcom/glympse/android/glympse/Glympse;->access$0(Lcom/glympse/android/glympse/Glympse;Lcom/glympse/android/glympse/Glympse$DlgLowBattery;)V

    .line 2080
    invoke-static {}, Lcom/glympse/platform/Platform;->instance()Lcom/glympse/platform/Platform;

    move-result-object v0

    invoke-virtual {v0}, Lcom/glympse/platform/Platform;->SetBatteryForce()V

    .line 2081
    sget-object v0, Lcom/glympse/android/glympseservice/GlympseService;->ms_oThis:Lcom/glympse/android/glympseservice/GlympseService;

    if-eqz v0, :cond_0

    sget-object v0, Lcom/glympse/android/glympseservice/GlympseService;->ms_oThis:Lcom/glympse/android/glympseservice/GlympseService;

    iget-object v0, v0, Lcom/glympse/android/glympseservice/GlympseService;->m_oNotificationList:Lcom/glympse/android/glympseservice/NotificationList;

    if-eqz v0, :cond_0

    .line 2083
    sget-object v0, Lcom/glympse/android/glympseservice/GlympseService;->ms_oThis:Lcom/glympse/android/glympseservice/GlympseService;

    iget-object v0, v0, Lcom/glympse/android/glympseservice/GlympseService;->m_oNotificationList:Lcom/glympse/android/glympseservice/NotificationList;

    invoke-virtual {v0}, Lcom/glympse/android/glympseservice/NotificationList;->Update()V

    .line 2085
    :cond_0
    return-void
.end method
